require("../../common/vendor.js"), (global.webpackJsonp = global.webpackJsonp || []).push([ [ "pagesA/pages/userA/creditorderdetail" ], {
    "07e6": function(e, n, a) {
        (function(o) {
            Object.defineProperty(n, "__esModule", {
                value: !0
            }), n.default = void 0;
            var e, r = (e = a("a34a")) && e.__esModule ? e : {
                default: e
            };
            function u(e, t, n, a, o, r, i) {
                try {
                    var c = e[r](i), u = c.value;
                } catch (e) {
                    return n(e), 0;
                }
                c.done ? t(u) : Promise.resolve(u).then(a, o);
            }
            var i = getApp(), t = {
                data: function() {
                    return {
                        module_name: i.globalData.module_name,
                        showAlert_login: !1,
                        userinfo: o.getStorageSync("userinfo"),
                        setting: o.getStorageSync("setting"),
                        wxCode: "",
                        systemtype: "",
                        mainHeight: 0,
                        pageLoading: !0,
                        orderid: "",
                        goodsDetail: []
                    };
                },
                onReady: function() {},
                onShow: function() {
                    o.hideLoading();
                },
                onLoad: function(n) {
                    var c, a = this;
                    return c = r.default.mark(function e() {
                        var t;
                        return r.default.wrap(function(e) {
                            for (;;) switch (e.prev = e.next) {
                              case 0:
                                return e.next = 2, a.$onLaunched;

                              case 2:
                                (t = a).setting = o.getStorageSync("setting"), t.tabBar = o.getStorageSync("tabbar"), 
                                t.userinfo = o.getStorageSync("userinfo"), o.hideLoading(), a.module_name = i.globalData.module_name, 
                                a.orderid = n.id, a.getOrders();

                              case 12:
                              case "end":
                                return e.stop();
                            }
                        }, e);
                    }), function() {
                        var e = this, i = arguments;
                        return new Promise(function(t, n) {
                            var a = c.apply(e, i);
                            function o(e) {
                                u(a, t, n, o, r, "next", e);
                            }
                            function r(e) {
                                u(a, t, n, o, r, "throw", e);
                            }
                            o(void 0);
                        });
                    }();
                },
                methods: {
                    bindCopy1: function() {
                        o.setClipboardData({
                            data: this.goodsDetail.orderid,
                            success: function(e) {
                                o.getClipboardData({
                                    success: function(e) {}
                                });
                            }
                        });
                    },
                    bindCopy2: function() {
                        o.setClipboardData({
                            data: this.goodsDetail.courier_number,
                            success: function(e) {
                                o.getClipboardData({
                                    success: function(e) {}
                                });
                            }
                        });
                    },
                    bindCopy3: function() {
                        o.setClipboardData({
                            data: this.goodsDetail.reback,
                            success: function(e) {
                                o.getClipboardData({
                                    success: function(e) {}
                                });
                            }
                        });
                    },
                    bindSh: function() {
                        var t = this, e = i.globalData.util.url("entry/wxapp/api", {
                            m: i.globalData.module_name,
                            o: "creditordersh"
                        }), n = {
                            openid: o.getStorageSync("openid"),
                            orderid: this.orderid
                        };
                        o.request({
                            url: e,
                            method: "POST",
                            header: {
                                "content-type": "application/x-www-form-urlencoded"
                            },
                            data: n,
                            success: function(e) {
                                e = i.globalData.crypt.Decrypt(e.data.data.data, e.data.data.key);
                                1 == JSON.parse(e).shstatus ? (o.showToast({
                                    title: "确认收货成功",
                                    icon: "none"
                                }), t.goodsDetail.status = 2) : o.showToast({
                                    title: "确认收货失败",
                                    icon: "none"
                                });
                            }
                        });
                    },
                    getOrders: function() {
                        var t = this, e = i.globalData.util.url("entry/wxapp/api", {
                            m: i.globalData.module_name,
                            o: "creditorderdetail"
                        }), n = {
                            openid: o.getStorageSync("openid"),
                            orderid: this.orderid
                        };
                        o.request({
                            url: e,
                            method: "POST",
                            header: {
                                "content-type": "application/x-www-form-urlencoded"
                            },
                            data: n,
                            success: function(e) {
                                e = i.globalData.crypt.Decrypt(e.data.data.data, e.data.data.key), e = JSON.parse(e);
                                console.log(e), t.goodsDetail = e.detail;
                            }
                        });
                    }
                },
                components: {
                    gracePage: (a("e5c8"), function() {
                        a.e("graceUI/components/gracePage").then(function() {
                            return resolve(a("1021"));
                        }.bind(null, a)).catch(a.oe);
                    })
                }
            };
            n.default = t;
        }).call(this, a("543d").default);
    },
    4318: function(e, t, n) {
        n.r(t);
        var a, o = n("6b18"), r = n("c5bb");
        for (a in r) "default" !== a && function(e) {
            n.d(t, e, function() {
                return r[e];
            });
        }(a);
        n("72ee");
        var i = n("f0c5"), o = Object(i.a)(r.default, o.b, o.c, !1, null, null, null, !1, o.a, void 0);
        t.default = o.exports;
    },
    "6b18": function(e, t, n) {
        n.d(t, "b", function() {
            return o;
        }), n.d(t, "c", function() {
            return r;
        }), n.d(t, "a", function() {
            return a;
        });
        var a = {
            uIcon: function() {
                return n.e("uview-ui/components/u-icon/u-icon").then(n.bind(null, "bee6"));
            }
        }, o = function() {
            this.$createElement;
            this._self._c;
        }, r = [];
    },
    "72ee": function(e, t, n) {
        var a = n("af4c");
        n.n(a).a;
    },
    af4c: function(e, t, n) {},
    b0c9: function(e, t, n) {
        (function(e) {
            function t(e) {
                return e && e.__esModule ? e : {
                    default: e
                };
            }
            n("0cda"), t(n("66fd")), e(t(n("4318")).default);
        }).call(this, n("543d").createPage);
    },
    c5bb: function(e, t, n) {
        n.r(t);
        var a, o = n("07e6"), r = n.n(o);
        for (a in o) "default" !== a && function(e) {
            n.d(t, e, function() {
                return o[e];
            });
        }(a);
        t.default = r.a;
    }
}, [ [ "b0c9", "common/runtime", "common/vendor" ] ] ]);